package com.smasher.component.entity;

import androidx.annotation.NonNull;

import com.google.gson.annotations.SerializedName;

public class BaseData {

    @SerializedName(value = "success", alternate = {"Success"})
    private boolean success;

    @SerializedName(value = "code", alternate = {"ErrorCode"})
    private int code;
    @SerializedName(value = "msg", alternate = {"message", "Msg", "Message"})
    private String msg;
    @SerializedName(value = "Total")
    private int total;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    @NonNull
    @Override
    public String toString() {
        return "success=" + success +
                ", code=" + code +
                ", msg='" + msg;
    }
}
